package com.shanke.ftpserver.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class HelloWorldController {

	@Autowired
	private Environment env;

	@RequestMapping("/getFooProperties")
	public void getFooProperties() {
		System.out.println(env.getProperty("ftp.homedirectory"));
	}
}